﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace WebApp.Models
{
    /// <summary>
    /// 命令异步执行结果
    /// </summary>
    public class IoTCmdChangedResult
    {
        /// <summary>
        /// 采集器
        /// </summary>
        public string CollectorCode { get; set; }
        /// <summary>
        /// 电表
        /// </summary>
        public string MeterCode { get; set; }
        /// <summary>
        /// 执行命令
        /// </summary>
        public string Command { get; set; }
        /// <summary>
        /// 请求ID
        /// </summary>
        public string RequestId { get; set; }
        /// <summary>
        /// 执行状态
        /// </summary>
        public IoTCmdStatus Status { get; set; }
        /// <summary>
        /// 响应或错误消息
        /// </summary>
        public string Message { get; set; }
        /// <summary>
        /// 执行时间
        /// </summary>
        public DateTime ExecuteTime { get; set; }
        /// <summary>
        /// 具体数据 
        /// Power=
        /// </summary>
        public Dictionary<string, dynamic> Data { get; set; }

    }
}
